package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderCompletedData implements Parcelable {

	@JsonProperty("status")
	Integer status;
	@JsonProperty("message")
	String message;
	@JsonProperty("totalitems")
	String totalitems;
	@JsonProperty("totalgenerateditems")
	String totalgenerateditems;

	@JsonProperty("postedordertotal")
	String postedordertotal;

	@JsonProperty("ordertotal")
	String ordertotal;

	@JsonProperty("orderid")
	String orderid;

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getTotalitems() {
		return this.totalitems;
	}

	public void setTotalitems(String totalitems) {
		this.totalitems = totalitems;
	}

	public String getTotalgenerateditems() {
		return this.totalgenerateditems;
	}

	public void setTotalgenerateditems(String totalgenerateditems) {
		this.totalgenerateditems = totalgenerateditems;
	}

	public String getPostedordertotal() {
		return this.postedordertotal;
	}

	public void setPostedordertotal(String postedordertotal) {
		this.postedordertotal = postedordertotal;
	}

	public String getOrdertotal() {
		return this.ordertotal;
	}

	public void setOrdertotal(String ordertotal) {
		this.ordertotal = ordertotal;
	}

	public String getOrderid() {
		return this.orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	protected OrderCompletedData(Parcel in) {
		status = in.readInt();
		message = in.readString();
		totalitems = in.readString();
		totalgenerateditems = in.readString();
		postedordertotal = in.readString();
		ordertotal = in.readString();
		orderid = in.readString();
	}

	public OrderCompletedData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(status);
		dest.writeString(message);
		dest.writeString(totalitems);
		dest.writeString(totalgenerateditems);
		dest.writeString(postedordertotal);
		dest.writeString(ordertotal);
		dest.writeString(orderid);
	}

	public static final Parcelable.Creator<OrderCompletedData> CREATOR = new Parcelable.Creator<OrderCompletedData>() {
		public OrderCompletedData createFromParcel(Parcel in) {
			return new OrderCompletedData(in);
		}

		public OrderCompletedData[] newArray(int size) {
			return new OrderCompletedData[size];
		}
	};
}